package features;

import java.util.Comparator;

import model.Term;

public class CHIComparator implements Comparator<Term> {

	@Override
	public int compare(Term o1, Term o2) {
		if(o1.getChisq() > o2.getChisq())
			return -1;
		if(o1.getChisq() < o2.getChisq())
			return 1;
		return 0;
	}

}
